<?php

namespace App\Http\Controllers\Admin\Index;

use DB;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Session;
use App\Http\Controllers\Admin\Login\Api\loginApi;
use App\Model\AdminUsers;


/**
 * @author mais <[<380354618@qq.com>]>
 * 加载后台首页
 * @return view 
 */


class adminIndexController extends Controller
{
	//首页
    public function index(Request $request)
    {

        $id = $request->session()->all()['admin_user_arr']['id'];
        $list = AdminUsers::find($id);


    	return view('Admin/Index/index', ['list'=>$list]);

    }

    //首页内容
    public function welcome()
    {
    	return view('Admin/Index/welcome');
    }

}
